package com.qf.minio.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;


/**
 * @Author: sin
 * @Date: 2025/5/22 14:36
 * @Description:
 **/
public interface MinioService {

    String getDownloadUrl(String bucketName, String fileName, int expire);

    String uploadFile(MultipartFile file, String bucketName, String fileName);
    
    void deleteFile(String bucketName, String fileName);
    
    void downloadFile(String bucketName, String fileName, HttpServletResponse response);
    
    boolean fileExists(String bucketName, String fileName);
}
